<template>
  <div class="xtx-form">
    <div class="user-info">
      <img src="" alt="" />
      <p>Hi，zhangsan 欢迎来小兔鲜，完成绑定后可以QQ账号一键登录哦~</p>
    </div>
    <div class="xtx-form-item">
      <div class="field">
        <i class="icon iconfont icon-phone"></i>
        <input class="input" type="text" placeholder="绑定的手机号" />
      </div>
      <!-- <div v-if="errors.mobile" class="error">{{ errors.mobile }}</div> -->
    </div>
    <div class="xtx-form-item">
      <div class="field">
        <i class="icon iconfont icon-code"></i>
        <input name="code" class="input" type="text" placeholder="短信验证码" />
        <span @click="send()" class="code">
          验证码
          <!-- {{ time === 0 ? "发送验证码" : `${time}秒后发送` }} -->
        </span>
      </div>
      <!-- <div v-if="errors.code" class="error">{{ errors.code }}</div> -->
    </div>
    <a href="javascript:;" class="submit">立即绑定</a>
  </div>
</template>

<script>
export default {
  name: "CallbackBind",
};
</script>

<style scoped lang='less'>
.user-info {
  width: 320px;
  height: 70px;
  margin: 0 auto;
  display: flex;
  background: #f2f2f2;
  align-items: center;
  padding: 0 10px;
  margin-bottom: 25px;
  img {
    background: #f2f2f2;
    width: 50px;
    height: 50px;
  }
  p {
    padding-left: 10px;
  }
}
.code {
  position: absolute;
  right: 0;
  top: 0;
  line-height: 50px;
  width: 80px;
  color: #999;
  &:hover {
    cursor: pointer;
  }
}
</style>
